<?
include("protect1.php");

	//include("banner.html");
	include("connect.php");
	$pilih=mysql_select_db("uwika_krs",$conn);

?>

<style type="text/css">
<!--
body,td,th {
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11pt;
}
body {
	background-color: #001E8C;
	background-image: url(bg.jpg);
	background-repeat: repeat;
}
a:link {
	color: #FFFFFF;
	text-decoration: none;
}
a:visited {
	color: #CCCCCC;
	text-decoration: none;
}
a:hover {
	color: #001E8B;
	text-decoration: underline;
}
a:active {
	color: #001F8A;
	text-decoration: none;
}
-->
</style>
<title>:: HOME ::</title><table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="7e96dc">&nbsp;</td>
  </tr>
  <tr>
    <td><img src="images/bannerAtas.jpg" alt="image" width="780" height="200" /></td>
  </tr>
  <tr>
    <td bgcolor="3a5db1">
	<?php
	
	echo "<br>";
	//echo "&nbsp;&nbsp;";
	//echo "<font size=5>";
	//echo "<marquee>ADMIN KRS SAAT INI SEDANG ONLINE DI IRC DAL.NET CHANNEL : #UWIKA</marquee></font></blink></p>";
	//echo "</FONT>";
	//echo "<br>";
	echo "<div align = center>";
	echo "<BR><br>";
	echo "<form name=\"form1\" method=\"get\" action=\"view.php\">";
	//echo "<table width=\"50%\" border=\"0\">";
	//echo "<tr><td colspan=2>";
	echo "Lihat daftar mata kuliah yang " . "<b>" . "sedang ditawarkan" . "</b>" . " pada :";
	//echo "</td></tr>";
	//echo "<td width=\"5%\">Semester :</td>";
	//echo "<td><select name=\"sel_smt\">";
	echo "<br>SEMESTER : <select name=\"sel_smt\">";
	$sqlstr="SELECT distinct semester FROM penawaran order by semester";
	$hasil=mysql_query($sqlstr);
	$row = mysql_fetch_row($hasil);
    do {
		list($semester) = $row;
		echo "<option>";
		echo $semester;
		echo "</option>";
	} while ($row=mysql_fetch_row($hasil));
    echo "</select>";
	//echo "</td></tr>";
	//echo "<tr>";
	//echo "<td><p align=right>Periode :</p></td>";
	echo "<br>Periode GASAL / 2012-2013 <br>";									// semester tahun ajaran ato periode
	echo "<input type=\"hidden\" name=\"sel_periode\" value=\"2012-2013\">";	// tahun ajaran ato periode
	//echo "</tr>";
	//echo "<tr>";
	if (date("Y-m-d H:i:s") >= "2012-08-30 01:00:01" && date("Y-m-d H:i:s") <= "2012-09-14 11:59:59") // batasan waktu (jam 30 agust 13.00.01 - 14 sept 23.59.59)
//	if (date("Y-m-d H:i:s") >= "2012-08-26 13:00:01" && date("Y-m-d H:i:s") <= "2012-08-29 12:59:59") // batasan waktu
	echo "<input type=\"submit\" name=\"cmdlihat\" value=\"Lihat\">";
else
	echo "~ Maaf Tidak Memasuki Masa KRS ~";
	
	//echo "</table>";
	echo "</form>";

	echo "<form name=\"form2\" method=\"get\" action=\"viewkrs.php\">";
	//echo "<table width=\"50%\" border=\"0\">";
	//echo "<tr><td colspan=2>";
	echo "Lihat daftar mata kuliah yang ". "<b>" . "sudah didaftarkan" . "</b>" . " pada :"; 
	//echo "</td></tr>";
	//echo "<tr><td width=\"5%\">Semester :</td>";
	echo "<br>Semester GASAL";													// semesteran
	echo "<input type=\"hidden\" name=\"sel_sesi\" value=\"GASAL\">";			// semesteran
	//echo "<tr>";
	//echo "<td><p align=right>Periode :</p></td>";
	echo "<br>Periode : 2012-2013";												// tahun ajaran
	echo "<input type=\"hidden\" name=\"sel_periode\" value=\"2012-2013\">";	// tahun ajaran
	//echo "<tr>";
	echo "<br><input type=\"submit\" name=\"cmdlihat\" value=\"Lihat\">";
	//echo "</table>";
	echo "</form>";
	echo "</div>";
	echo "<BR>";
	include("footer.php");
?>
	&nbsp;</td>
  </tr>
  <tr>
    <td bgcolor="7e96dc"><div align="center">copyleft ICT 2012 </div></td>
  </tr>
</table>
